            {include file="common/header,common/navbar,common/top"}

            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-sm-4">
                    <h2>欢迎使用...后台管理系统！</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.html">系统设置</a>
                        </li>
                        <li class="active">
                            <strong>配置管理</strong>
                        </li>
                    </ol>
                </div>
            </div>

            <!-- 内容开始 -->
            <div class="wrapper wrapper-content">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>配置列表</h5>
                                <div class="ibox-tools">
                                    <a href="{:url('conf/add')}" class="btn btn-primary">增加配置</a>
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                    <a class="dropdown-toggle" data-toggle="dropdown" href="table_basic.html#">
                                        <i class="fa fa-wrench"></i>
                                    </a>                                    
                                    <ul class="dropdown-menu dropdown-user">
                                        <li><a href="table_basic.html#">Config option 1</a>
                                        </li>
                                        <li><a href="table_basic.html#">Config option 2</a>
                                        </li>

                                    </ul>
                                    <a class="close-link">
                                        <i class="fa fa-times"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
    
                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>中文名称</th>
                                        <th>英文名称</th>
                                        <th>默认值</th>
                                        <th>可选值</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="confRes" id="conf"}
                                    <tr>
                                        <td>{$conf.id}</td>
                                        <td>{$conf.cname}</td>
                                        <td>{$conf.ename}</td>
                                        <td>{$conf.value|default="未定义"}</td>
                                        <td>{$conf.values|default="未定义"}</td>
                                        <td>
                                            <a class="btn btn-sm btn-success" href="{:url('Conf/edit',['id'=>$conf['id']])}">编辑</a>
                                            <a class="btn btn-sm btn-danger" href="{:url('Conf/del',array('id'=>$conf['id']))}" onClick="return confirm('确定删除?');">删除</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                             
                                <div class="text-right">
                                    {$confRes->render()}
                                </div>
                            </div>
                        </div>
                    </div>                
                </div>
            </div>
            <!-- 内容结束 -->
            {include file="common/footer"}